using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;

public partial class GioiThieu : System.Web.UI.Page
{
    clsxuly xuly = new clsxuly();
    DataTable tbl = new DataTable();

    protected void Page_Load(object sender, EventArgs e)
    {
        tbl = xuly.TimGioiThieu();
        string tieudetin;
        string matin;
        string tomtat;
        string hinhanh;
        string html = "";
        string noidung;
        foreach (DataRow dr in tbl.Rows)
        {
            html += "<br/>";

            matin = dr["MaTin"].ToString();
            tieudetin = dr["TenTinTuc"].ToString();
            tomtat = dr["TomTat"].ToString();
            noidung = dr["NoiDung"].ToString();
            hinhanh = dr["HinhAnh"].ToString();

            html += "<font color='#3366FF' size='5'>" + tieudetin + "</font><br><br/>";
            html += "<img src='" + hinhanh + "' alt='" + tomtat + "' width='394' /><br /><br />";
            html += noidung + "<br/>";


        }
        Hienthi.InnerHtml = html;
    }
}
